glcontext: Make begin/end_draw() paired
authorBenjamin Otte <otte@redhat.com>
Wed, 23 Nov 2016 04:18:43 +0000 (05:18 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 5 Dec 2016 14:02:47 +0000 (15:02 +0100)
commite87b472143a1116a571f0b49c07afbbc33a88a84
tree2e2b38180c4eb1b3bc3c28a8eecee2394c7a90af
parent182d18bcd103434b4154bf9bcaf24312e9d97078
glcontext: Make begin/end_draw() paired

This way, we can query the GL context's state via
gdk_gl_context_is_drawing().

Use this function to make GL contexts as attached and grant them access
to the front/backbuffer for rendering.

All of this is still unused because GL drawing is still disabled.
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h
gdk/gdkwindow.c
gdk/mir/gdkmirdisplay.c
gdk/wayland/gdkglcontext-wayland.c
gdk/x11/gdkglcontext-x11.c
gdk/x11/gdkglcontext-x11.h